package com.mano.mall.gateway.builder;

import com.netflix.zuul.context.RequestContext;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface GatewayBuild {

	/**
	 * 黑名单拦截
	 */
	boolean blackBlock(RequestContext ctx, String ipAddres, HttpServletResponse response);

	/**
	 * 参数验证
	 */
	boolean toVerifyMap(RequestContext ctx, String ipAddres, HttpServletRequest request);
	/**
	 * api权限控制
	 *
	 * @return
	 */
	boolean apiAuthority(RequestContext ctx, HttpServletRequest request);

}
